Skip to content

Conversation

@fhahn
Copy link

@fhahn fhahn commented Nov 10, 2025

…ns. (llvm#166945)

Currently sinking assumes in instcombine drops assumes if they would prevent sinking. Removing dereferenceable assumptions earlier on can inhibit vectorization of early-exit loops in practice.

Special-case deferenceable assumptions so that they block sinking. This can be combined with a separate change to drop dereferencebale assumptions after vectorization: https://clang.godbolt.org/z/jGqcx3sbs

PR: llvm#166945

(cherry picked from commit 700b77b)

@fhahn
Copy link
Author

fhahn commented Nov 10, 2025

@swift-ci please test

@fhahn
Copy link
Author

fhahn commented Nov 10, 2025

@swift-ci please test llvm

@fhahn
Copy link
Author

fhahn commented Nov 10, 2025

@swift-ci please test

2 similar comments
@fhahn
Copy link
Author

fhahn commented Nov 11, 2025

@swift-ci please test

@fhahn
Copy link
Author

fhahn commented Nov 11, 2025

@swift-ci please test

…ns. (llvm#166945)

Currently sinking assumes in instcombine drops assumes if they would
prevent sinking. Removing dereferenceable assumptions earlier on can
inhibit vectorization of early-exit loops in practice.

Special-case deferenceable assumptions so that they block sinking. This
can be combined with a separate change to drop dereferencebale
assumptions after vectorization: https://clang.godbolt.org/z/jGqcx3sbs

PR: llvm#166945

(cherry picked from commit 700b77b)
@fhahn fhahn force-pushed the pick-deref-ic-sinking branch from 8612ad0 to f3b0fef Compare November 12, 2025 10:27
@fhahn
Copy link
Author

fhahn commented Nov 12, 2025

@swift-ci please test

1 similar comment
@fhahn
Copy link
Author

fhahn commented Nov 12, 2025

@swift-ci please test

@fhahn fhahn merged commit 3c3e89f into swiftlang:stable/21.x Nov 13, 2025
3 checks passed
@fhahn fhahn deleted the pick-deref-ic-sinking branch November 13, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant